//
//  StoreDetailTableHeaderView.h
//  BaseProject
//
//  Created by 王洋 on 2020/7/14.
//  Copyright © 2020 王洋. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "StoreDetailModel.h"

NS_ASSUME_NONNULL_BEGIN

typedef NS_ENUM(NSInteger, StoreDetailTableHeaderType) {
    //无忧选
    StoreDetailTableHeaderType_wuyouxuan,
    
    StoreDetailTableHeaderType_story,
    
    StoreDetailTableHeaderType_video,
    
    StoreDetailTableHeaderType_mapNavi,
    
    StoreDetailTableHeaderType_coupon,


};

@interface StoreDetailTableHeaderView : UIView


+ (CGFloat)calculateHeight;


@property (weak, nonatomic) IBOutlet UICollectionView *collectionview;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *infoBGHeight;



@property (weak, nonatomic) IBOutlet UIImageView *storeImageBGView;

@property (weak, nonatomic) IBOutlet UIView *storeStarBgView;


@property (weak, nonatomic) IBOutlet UIView *storeInfoBGView;


@property (weak, nonatomic) IBOutlet UIView *storeStoryBGView;

@property (weak, nonatomic) IBOutlet UILabel *storeStoryTitle;
@property (weak, nonatomic) IBOutlet UILabel *storeStoryContent;

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *storeStoryHeight;


@property (weak, nonatomic) IBOutlet UIView *storeCouponBGView;

@property (weak, nonatomic) IBOutlet UIView *storeMapView;

@property (weak, nonatomic) IBOutlet UIImageView *storeMapBGImageView;


@property (weak, nonatomic) IBOutlet UIImageView *mapNaviControl;

@property (weak, nonatomic) IBOutlet UIView *lookMoreControl;

//infoview的tag

@property (weak, nonatomic) IBOutlet NSLayoutConstraint *promiseHeight;

@property (weak, nonatomic) IBOutlet UIView *promiseBGView;


//无忧选按钮
@property (weak, nonatomic) IBOutlet UIButton *goWYXBtn;
//无忧选icon
@property (weak, nonatomic) IBOutlet UIImageView *wuyouxuanControl;
//无忧选bg
@property (weak, nonatomic) IBOutlet UIView *wyxControl;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *wyxHeight;

@property (weak, nonatomic) IBOutlet UIImageView *wyxIcon1;
@property (weak, nonatomic) IBOutlet UILabel *wyxLab1;


@property (weak, nonatomic) IBOutlet UIImageView *wyxIcon2;
@property (weak, nonatomic) IBOutlet UILabel *wyxLab2;


@property (weak, nonatomic) IBOutlet UIImageView *wyxIcon3;
@property (weak, nonatomic) IBOutlet UILabel *wyxLab3;


@property (weak, nonatomic) IBOutlet UILabel *storeName;

@property (weak, nonatomic) IBOutlet UIImageView *storeIcon;

@property (weak, nonatomic) IBOutlet UILabel *countDescLab;

@property (weak, nonatomic) IBOutlet UILabel *addressLab;

@property (weak, nonatomic) IBOutlet UILabel *starCountLab;

@property (weak, nonatomic) IBOutlet UILabel *couponCountLab;

@property (weak, nonatomic) IBOutlet UILabel *markLab;


@property (nonatomic, copy) void(^StoreDetailTableHeaderViewBlock)(StoreDetailTableHeaderType type, NSInteger index);


@property (nonatomic, strong) StoreDetailModel *model;

+ (CGFloat)calculateHeightWithModel:(StoreDetailModel *)model;

- (void)fillHeaderWithModel:(StoreDetailModel *)model;

@end

NS_ASSUME_NONNULL_END
